package www.csdn.net.day56.service.impl;

import www.csdn.net.day56.bean.Admin;
import www.csdn.net.day56.dao.AdminDao;
import www.csdn.net.day56.dao.impl.AdminDaoImpl;
import www.csdn.net.day56.service.AdminService;

public class AdminServiceImpl implements AdminService {

	private AdminDao adminDao = new AdminDaoImpl();

	@Override
	public Admin checkLogin(String name, String pass) {
		Admin entity = adminDao.checkLogin(name, pass);
		return entity;
	}

	@Override
	public Admin checkLogin(String name) {

		return adminDao.checkLogin(name);
	}

}